<tagLib name="strends" />
<include file="Public:header" />
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:U(MODULE_NAME.'/index')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/insert')}">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="200">{%REDIS}</th>
		<td>
			<label for='qian'><input type='radio' id='qian' name='redis' value='1' checked /> 编辑后台	</label>
			<label for='hou'><input type='radio' id='hou' name='redis' value='2' /> 总后台(蓝色后台)</label>  <font color='red'> <b>提示</b>：</font><font color='gray'> 专辑审核，专辑统计 请选择编辑后台。</font>&nbsp;&nbsp;<font color='gray' >专辑修改，请选择总后台</font>
		</td>
	</tr>
	<tr>
		<th width="200">{%MID}</th>
		<td>
			<select name='mid' id='mid' >
				<volist name="fashion" id="vo">
					<option value='{$vo.uid}'>{$vo.user_name}</option>
				</volist>
			</select>
		</td>
	</tr>
	<tr>
		<th width="200">{%shenfen}</th>
		<td>
			<select  name='type' >
				<volist name="role" id="vs">
					<option value='{$vs.id}'>{$vs.name}</option>
				</volist>
			</select>
		</td>
	</tr>
	<script>
		$(function (){
			$('#qian').click(function (){
				var val=$(this).attr('value');
				var da='model='+val;
				$.ajax({
					url: APP + '?' + VAR_MODULE + '=RoleDetail&' + VAR_ACTION + '=res',
					type:"POST",
					cache: false,
					data:da,
					dataType:"json",
					success: function(result){
						$('#mid').html('');
						for(var i=0,cou=result.res.length;i<cou;i++){
							$('#mid').append('<option value="'+result.res[i].uid+'">'+result.res[i].user_name+'</option>');
						}
					}
				});
			});
			
			$('#hou').click(function (){
				var val=$(this).attr('value');
				var da='model='+val;
				
				$.ajax({
					url: APP + '?' + VAR_MODULE + '=RoleDetail&' + VAR_ACTION + '=res',
					type:"POST",
					cache: false,
					data:da,
					dataType:"json",
					success: function(result){
						$('#mid').html('');
						for(var i=0,cou=result.res.length;i<cou;i++){
							$('#mid').append('<option value="'+result.res[i].id+'">'+result.res[i].admin_name+'</option>');
						}
					}
				});
			});
			
		
			
		});
	</script>
	
	<tr>
		<th width="200">{%FASHION}</th>
		<td>
			<p >
				<volist name="fashion" id="vu">
					<label><input class="action-item" type="checkbox" name="uid[]" value="{$vu.uid}" /><span>&nbsp;{$vu.user_name}</span></label>&nbsp;&nbsp;
				</volist>
			</p>
		</td>
	</tr>
	
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>
<include file="Public:footer" />